using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Pig : Destructiable
{

    public int score = 3000;
    public override void Dead()
    {
        GameObject.Instantiate(boomPrefab, transform.position, Quaternion.identity);
        Destroy(gameObject);
        ScoreManager.Instance.ShowScore(transform.position,score);
        GameManager.Instance.PigDead();
        
    }
    protected override void PlayAudioCollsion(Vector3 p)
    {
        AudioManager.Instance.PlayPigCollsion(p);
    }
}
